
from app.models.mongo_model import mongo_conn  # mongodb


def user_defined_rule():
    mon = mongo_conn()  # 连接mongodb
    collection = mon['custom']  # 指定集合
    # 获取数据
    col = collection.find_one({'sql_inject.details': 'sql注入'})
    print(col)


if __name__ == '__main__':
    user_defined_rule()
